package com.zx.oa.service.marketClass;

import com.zx.oa.dao.marketClass.MarketClassDao;
import com.zx.oa.dao.marketClass.MarketClassDaoImpl;
import com.zx.oa.entity.MarketClass;

import java.util.List;


public class MarketClassServiceImpl implements MarketClassService{
    MarketClassDao marketClassDao=new MarketClassDaoImpl();
    @Override
    public List<MarketClass> getMarketClassList(String classType,int currentPageNo,int pageSize) {
        return marketClassDao.getMarketClassList(classType,currentPageNo,pageSize) ;
    }

    @Override
    public boolean addMarketClass(String className, String classType) {
        return marketClassDao.addMarketClass(className,classType);
    }

    @Override
    public MarketClass getMarketClassLists(int classId) {
        return marketClassDao.getMarketClassLists(classId);
    }

    @Override
    public boolean modifyMarketClass(String name, String classType, int classId) {
        return marketClassDao.modifyMarketClass(name,classType,classId);
    }

    @Override
    public boolean deleteMarketClass(int classId) {
        return marketClassDao.deleteMarketClass(classId);
    }

    @Override
    public List<MarketClass> getMarketClassType() {
        return marketClassDao.getMarketClassType();
    }

    @Override
    public int getMarketClassIdCount(int classId) {
        return marketClassDao.getMarketClassIdCount(classId);
    }
    @Override
    public List<MarketClass> getMarketClassInfo() {
        return marketClassDao.getMarketClassInfo();
    }

    @Override
    public List<String> getClassTypeAll() {
        return marketClassDao.getClassTypeAll();
    }
}
